package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.SignInfoEntity;
import com.dragon.modules.yuegou.enums.points.SignInfoSginLogic;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 签到说明表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-24 17:38:26
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class SignInfo extends SignInfoEntity {

	private List<SignRules> rulesList;

	private SignDetail signDetail;

	public List<SignRules> getRulesList() {
		return rulesList;
	}

	public void setRulesList(List<SignRules> rulesList) {
		this.rulesList = rulesList;
	}

	public SignDetail getSignDetail() {
		return signDetail;
	}

	public void setSignDetail(SignDetail signDetail) {
		this.signDetail = signDetail;
	}

	/**
	 * 构造一个空签到说明表模型对象
	 */
	public SignInfo(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个签到说明表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public SignInfo(SignInfoEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个签到说明表模型对象
	 * 
	 * @param other 其它对象
	 */
	public SignInfo(SignInfo other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public SignInfo id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public SignInfo busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public SignInfoSginLogic getSginLogic() {
    	return sginLogic;
    }

    /**
	 * 设置[枚举]签到逻辑：0-连续签到从第一天开始-STARTFIRST
	 * 
	 * @param sginLogic [枚举]签到逻辑：0-连续签到从第一天开始-STARTFIRST
	 * @return 当前对象
	 */
    public SignInfo sginLogic(SignInfoSginLogic sginLogic) {
    	this.sginLogic = sginLogic;
    	return this;
    }

	@Override
	public String getSginExplain() {
    	return sginExplain;
    }

    /**
	 * 设置签到说明
	 * 
	 * @param sginExplain 签到说明
	 * @return 当前对象
	 */
    public SignInfo sginExplain(String sginExplain) {
    	this.sginExplain = sginExplain;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public SignInfo createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public SignInfo createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public SignInfo modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public SignInfo modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public SignInfo del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public SignInfo delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public SignInfo delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
